const Router = require('@koa/router');
const fun = require('../controller/admin/basic_material.controller');
const config = require('../config');

const router = new Router({ prefix: `${config.ADMIN_PREFIX_V2}/basic_material` });
// 物料管理
router.post('/create', fun.createMaterial); // 创建物料
router.post('/delete', fun.deleteMaterials); // 删除物料
router.post('/update', fun.updateMaterial); // 更新物料
router.get('/list', fun.getMaterialList); // 查询物料列表
router.post('/update_status', fun.updateMaterialState); // 修改物料状态
router.get('/info', fun.getMaterialInfo); // 获取单条物料信息
module.exports = router;
